package com.hawthorn.admin.repository;

import com.hawthorn.admin.repository.provider.SysRoleSqlProvider;
import com.hawthorn.entity.po.SysRoleMenuPO;
import com.hawthorn.platform.repository.DBMapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>todo 系统角色菜单Mapper类</p>
 * @author: andy.ten@tom.com | xukaixing@hotmail.com
 * @created: 2022/7/29 10:25
 * @version v1.0.1
 * @copyright: Copyright (c)  andyten
 */
@Repository
public interface SysRoleMenuMapper extends DBMapper<SysRoleMenuPO>
{

  @SelectProvider(SysRoleSqlProvider.class)
  Integer findRoleByCode(String rcode);

  @SelectProvider(SysRoleSqlProvider.class)
  List<Map<String, Object>> searchAuthGrantMenus(Long roleId);
}
